package com.itheima.wemedia.feign;

import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "leadnews-dfs", contextId = "DfsFeign")
public interface DfsFeign {

    /**
     * 通过远程调用删除素材
     *
     * @param url
     * @return
     */
    @DeleteMapping("/api/wmMaterial/delete")
    ResultVo delete(@RequestParam(value = "url") String url);


    /**
     * 通过远程调用dps下载图片素材(批量下载)
     *
     * @param
     * @return
     */
    @DeleteMapping("/api/dps/download")
     ResultVo<List<byte[]>> download(@RequestBody List<String> images);
}
